<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ui:page binding="#{consultaClientes.page1}" id="page1">
            <ui:html binding="#{consultaClientes.html1}" id="html1">
                <ui:head binding="#{consultaClientes.head1}" id="head1">
                    <ui:link binding="#{consultaClientes.link1}" id="link1" url="/resources/stylesheet.css"/>
                </ui:head>
                <ui:body binding="#{consultaClientes.body1}" id="body1" style="-rave-layout: grid">
                    <ui:form binding="#{consultaClientes.form1}" id="form1">
                        <h:panelGrid binding="#{consultaClientes.gridPanelParaTodo}" id="gridPanelParaTodo" style="height: 96px; left: 48px; top: 120px; position: absolute; width: 96px">
                            <ui:panelGroup binding="#{consultaClientes.groupPanelParaTituloYAlert}" id="groupPanelParaTituloYAlert">
                                <ui:alert binding="#{consultaClientes.alert1}" id="alert1" style="width: 406px"/>
                                <ui:staticText binding="#{consultaClientes.titulo}" id="titulo"
                                    style="color: rgb(108, 154, 154); font-family: 'Times New Roman','Times',serif; font-size: 18px" text="Consulta de clientes"/>
                            </ui:panelGroup>
                            <h:panelGrid binding="#{consultaClientes.gridPanelParaTextFields}" columns="4" id="gridPanelParaTextFields" width="408">
                                <ui:panelGroup binding="#{consultaClientes.groupPanelNit}" id="groupPanelNit">
                                    <ui:label binding="#{consultaClientes.nitLabel1}" for="nitTextField" id="nitLabel1" text="NIT"/>
                                    <ui:textField binding="#{consultaClientes.nitTextField}" columns="16" id="nitTextField"/>
                                </ui:panelGroup>
                                <ui:panelGroup binding="#{consultaClientes.groupPanelPrimerApellido}" id="groupPanelPrimerApellido">
                                    <ui:label binding="#{consultaClientes.primerApellidoLabel1}" id="primerApellidoLabel1" text="Primer apellido"/>
                                    <ui:textField binding="#{consultaClientes.primerApellidoTextField}" id="primerApellidoTextField"/>
                                </ui:panelGroup>
                                <ui:panelGroup binding="#{consultaClientes.groupPanelSeugndoApellido}" id="groupPanelSeugndoApellido">
                                    <ui:label binding="#{consultaClientes.segundpApellidoLabel1}" id="segundpApellidoLabel1" text="Segundo apellido"/>
                                    <ui:textField binding="#{consultaClientes.segundoApellidoTextField}" id="segundoApellidoTextField"/>
                                </ui:panelGroup>
                                <ui:panelGroup binding="#{consultaClientes.groupPanelNombre}" id="groupPanelNombre">
                                    <ui:label binding="#{consultaClientes.nombreLabel1}" id="nombreLabel1" text="Nombre"/>
                                    <ui:textField binding="#{consultaClientes.nombreTextField}" id="nombreTextField"/>
                                </ui:panelGroup>
                            </h:panelGrid>
                            <ui:table binding="#{consultaClientes.table1}" clearSortButton="true" id="table1" lite="true" paginateButton="true"
                                paginationControls="true" sortPanelToggleButton="true" title="Clientes" width="743">
                                <script><![CDATA[
/* ----- Functions for Table Preferences Panel ----- */
/*
 * Toggle the table preferences panel open or closed
 */
function togglePreferencesPanel() {
  var table = document.getElementById("form1:table1");
  table.toggleTblePreferencesPanel();
}
/* ----- Functions for Filter Panel ----- */
/*
 * Return true if the filter menu has actually changed,
 * so the corresponding event should be allowed to continue.
 */
function filterMenuChanged() {
  var table = document.getElementById("form1:table1");
  return table.filterMenuChanged();
}
/*
 * Toggle the custom filter panel (if any) open or closed.
 */
function toggleFilterPanel() {
  var table = document.getElementById("form1:table1");
  return table.toggleTableFilterPanel();
}
/* ----- Functions for Table Actions ----- */
/*
 * Initialize all rows of the table when the state
 * of selected rows changes.
 */
function initAllRows() {
  var table = document.getElementById("form1:table1");
  table.initAllRows();
}
/*
 * Set the selected state for the given row groups
 * displayed in the table.  This functionality requires
 * the 'selectId' of the tableColumn to be set.
 *
 * @param rowGroupId HTML element id of the tableRowGroup component
 * @param selected Flag indicating whether components should be selected
 */
function selectGroupRows(rowGroupId, selected) {
  var table = document.getElementById("form1:table1");
  table.selectGroupRows(rowGroupId, selected);
}
/*
 * Disable all table actions if no rows have been selected.
 */
function disableActions() {
  // Determine whether any rows are currently selected
  var table = document.getElementById("form1:table1");
  var disabled = (table.getAllSelectedRowsCount() > 0) ? false : true;
  // Set disabled state for top actions
  document.getElementById("form1:table1:tableActionsTop:deleteTop").setDisabled(disabled);
  // Set disabled state for bottom actions
  document.getElementById("form1:table1:tableActionsBottom:deleteBottom").setDisabled(disabled);
}]]></script>
                                <ui:tableRowGroup binding="#{consultaClientes.tableRowGroup1}" id="tableRowGroup1" rows="50"
                                    sourceData="#{consultaClientes.sct0039DataProvider}" sourceVar="currentRow">
                                    <ui:tableColumn binding="#{consultaClientes.tableColumn1}" headerText="NIT" id="tableColumn1">
                                        <ui:hyperlink action="#{consultaClientes.hyperlink1_action}" binding="#{consultaClientes.hyperlink1}" id="hyperlink1"
                                            style="font-size: 10px" text="#{consultaClientes.nitConversionDecimal}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{consultaClientes.tableColumn2}" headerText="Primer apellido" id="tableColumn2" sort="SCT0039.PRMERAPLLDO">
                                        <ui:staticText binding="#{consultaClientes.staticText2}" id="staticText2" style="font-size: 10px" text="#{currentRow.value['SCT0039.PRMERAPLLDO']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{consultaClientes.tableColumn3}" headerText="Segundo apellido" id="tableColumn3" sort="SCT0039.SGNDOAPLLDO">
                                        <ui:staticText binding="#{consultaClientes.staticText3}" id="staticText3" style="font-size: 10px" text="#{currentRow.value['SCT0039.SGNDOAPLLDO']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{consultaClientes.tableColumn4}" headerText="Nombre" id="tableColumn4" sort="SCT0039.NMBRE">
                                        <ui:staticText binding="#{consultaClientes.staticText4}" id="staticText4" style="font-size: 10px" text="#{currentRow.value['SCT0039.NMBRE']}"/>
                                    </ui:tableColumn>
                                </ui:tableRowGroup>
                                <!-- Actions (Top) -->
                                <f:facet name="actionsTop">
                                    <ui:panelGroup binding="#{consultaClientes.groupPanelBotones}" id="groupPanelBotones">
                                        <ui:button action="#{consultaClientes.botonConsultar_action}" binding="#{consultaClientes.botonConsultar}"
                                            id="botonConsultar" mini="true" primary="true" text="Consultar"/>
                                        <ui:button action="#{consultaClientes.botonCerrar_action}" binding="#{consultaClientes.botonCerrar}" id="botonCerrar"
                                            mini="true" primary="true" text="Cerrar"/>
                                    </ui:panelGroup>
                                </f:facet>
                            </ui:table>
                        </h:panelGrid>
                        <div style="left: 0px; top: 0px; position: absolute">
                            <jsp:include page="encab1.jspf"/>
                        </div>
                    </ui:form>
                </ui:body>
            </ui:html>
        </ui:page>
    </f:view>
</jsp:root>
